package com.example.wechat;

import java.util.Date;

public class Conversation {
    private String id;
    private String nickname;
    private String avatarUrl;
    private String lastMessage;
    private Date lastMessageTime;

    public Conversation(String id, String nickname, String avatarUrl, String lastMessage, Date lastMessageTime) {
        this.id = id;
        this.nickname = nickname;
        this.avatarUrl = avatarUrl;
        this.lastMessage = lastMessage;
        this.lastMessageTime = lastMessageTime;
    }

    public String getId() {
        return id;
    }

    public String getNickname() {
        return nickname;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public String getLastMessage() {
        return lastMessage;
    }

    public Date getLastMessageTime() {
        return lastMessageTime;
    }
} 